//package com.allwees.bs.module.oms.event.util;
//
//import com.allwees.bs.core.model.useraction.constant.EActionType;
//import com.allwees.bs.module.oms.annotation.ValidateUser;
//import com.allwees.bs.module.oms.entity.OrderItem;
//import com.allwees.core.common.util.http.RequestUtil;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// *
// *
// * @author yangylsky
// * @since 2020-03-28
// *
// */
//@Slf4j
//@Component
//public class RefundLogActionUtil {
//
//	@ValidateUser
//	public static void logAction(OrderItem orderItem,EActionType actionType,Integer isInfluencer) {
//		try {
//			new ActionLogDTO().setUaType(actionType)
//					.setPlatformAmt(orderItem.getPlatformAmtSku())
//					.setIsInfluencer(isInfluencer)
//					.setAmtCash(orderItem.getAmtCashSku())
//					.setOrderUuid(orderItem.getOrderUuid())
//					.setUserUuid(orderItem.getUserUuid())
//					.setSkuUuid(orderItem.getSkuUuid())
//					.setProductUuid(orderItem.getProductUuid())
//					.setQuantity(orderItem.getQuantity())
//					.setAmt(orderItem.getAmt())
//					.setAmtSku(orderItem.getAmtSku())
//					.setAmtShipping(orderItem.getAmtShipping())
//					.setAmtProductCoupon(orderItem.getAmtSkuCoupon())
//					.setRetailerUuid(orderItem.getRetailerUuid())
//					.setNewUser(orderItem.getNewUser())
//					.setPlatform(orderItem.getPlatform())
//					.setServer(RequestUtil.getSeverAddress())
//					.sendToMq();
//		} catch(Exception e) {
//			log.error("logAction OrderItemDTO failed", e);
//		}
//	}
//
//}
